 package com.briup.cms.exception;



 import com.briup.cms.utils.Message;
 import com.briup.cms.utils.MessageUtil;
 import javax.servlet.http.HttpServletRequest;
 import org.springframework.boot.web.servlet.error.ErrorController;
 import org.springframework.web.bind.annotation.RequestMapping;
 import org.springframework.web.bind.annotation.RestController;

 @RestController
 public class NotFoundException
   implements ErrorController
{
  @RequestMapping({"/error"})
   public Message error(HttpServletRequest request) {
    return MessageUtil.error("您访问的资源地址不存在：" + request.getRequestURI());
  }

   public String getErrorPath() {
/* 31 */     return "/error";
/*    */   }
 }


